#pragma once 

#include<stdio.h>

#define SIZE 1024

#define NONE_FLUSH (1<<1)
#define LINE_FLUSH (1<<2)
#define FULL_FLUSH (1<<3)

typedef struct my_FILE
{
    char outbuff[SIZE];
    int fileno;
    int pos;
    int cap;
    int flush_mode;

}myFILE;


myFILE* my_open(const char* pathname,const char* mode);
void DebugPrint(myFILE* fp);
void my_fflush(myFILE* fp);
int my_fwrite(myFILE* fp,const char* s,int size);
void my_close(myFILE* fp);
